<template>
  <div>
    <router-view></router-view>
    <van-tabbar v-model="active">
      <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
      <van-tabbar-item icon="search" to="list">列表</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="cart">购物车</van-tabbar-item>
      <van-tabbar-item icon="setting-o" to="min">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  // 组件名称
  name: "demo",
  // 组件参数 接收来自父组件的数据
  props: [],
  // 局部注册的组件
  components: {},
  // 组件状态值
  data() {
    return {
      active: 0,
    };
  },
  // 计算属性
  computed: {},
  // 侦听器
  watch: {},
  // 组件方法
  methods: {},
  //生命周期
  created() {},
  mounted() {},
};
</script> 

<style scoped>
</style>
